package com.sasis.model;
// Generated 2007-5-16 15:31:48 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="WR_PROCESS"
 *     
 */

public class WrProcess extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Long versioncontrol;
    private String name;
    private Integer procmodelid;
    private String description;
    private String createtime;
    private String starttime;
    private String startperformer;
    private String laststatechangetime;
    private String previousstate;
    private String curstate;
    private String priority;
    private Long revivenum;
    private String instcode;
    private String creator;
    private String assignmode;
    private Integer parentactinstid;
    private Long version;
    private String procdefid;
    private String flowStatus;

    // Constructors

    public String getFlowStatus() {
		return flowStatus;
	}


	public void setFlowStatus(String flowStatus) {
		this.flowStatus = flowStatus;
	}


	/** default constructor */
    public WrProcess() {
    }

    
    /** full constructor */
    public WrProcess(Long versioncontrol, String name, Integer procmodelid, String description, String createtime, String starttime, String startperformer, String laststatechangetime, String previousstate, String curstate, String priority, Long revivenum, String instcode, String creator, String assignmode, Integer parentactinstid, Long version, String procdefid) {
        this.versioncontrol = versioncontrol;
        this.name = name;
        this.procmodelid = procmodelid;
        this.description = description;
        this.createtime = createtime;
        this.starttime = starttime;
        this.startperformer = startperformer;
        this.laststatechangetime = laststatechangetime;
        this.previousstate = previousstate;
        this.curstate = curstate;
        this.priority = priority;
        this.revivenum = revivenum;
        this.instcode = instcode;
        this.creator = creator;
        this.assignmode = assignmode;
        this.parentactinstid = parentactinstid;
        this.version = version;
        this.procdefid = procdefid;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VERSIONCONTROL"
     *             length="10"
     *         
     */

    public Long getVersioncontrol() {
        return this.versioncontrol;
    }
    
    public void setVersioncontrol(Long versioncontrol) {
        this.versioncontrol = versioncontrol;
    }
    /**       
     *      *            @hibernate.property
     *             column="NAME"
     *             length="100"
     *         
     */

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROCMODELID"
     *             length="19"
     *         
     */

    public Integer getProcmodelid() {
        return this.procmodelid;
    }
    
    public void setProcmodelid(Integer procmodelid) {
        this.procmodelid = procmodelid;
    }
    /**       
     *      *            @hibernate.property
     *             column="DESCRIPTION"
     *             length="100"
     *         
     */

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    /**       
     *      *            @hibernate.property
     *             column="CREATETIME"
     *             length="23"
     *         
     */

    public String getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    /**       
     *      *            @hibernate.property
     *             column="STARTTIME"
     *             length="23"
     *         
     */

    public String getStarttime() {
        return this.starttime;
    }
    
    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }
    /**       
     *      *            @hibernate.property
     *             column="STARTPERFORMER"
     *             length="20"
     *         
     */

    public String getStartperformer() {
        return this.startperformer;
    }
    
    public void setStartperformer(String startperformer) {
        this.startperformer = startperformer;
    }
    /**       
     *      *            @hibernate.property
     *             column="LASTSTATECHANGETIME"
     *             length="23"
     *         
     */

    public String getLaststatechangetime() {
        return this.laststatechangetime;
    }
    
    public void setLaststatechangetime(String laststatechangetime) {
        this.laststatechangetime = laststatechangetime;
    }
    /**       
     *      *            @hibernate.property
     *             column="PREVIOUSSTATE"
     *             length="28"
     *         
     */

    public String getPreviousstate() {
        return this.previousstate;
    }
    
    public void setPreviousstate(String previousstate) {
        this.previousstate = previousstate;
    }
    /**       
     *      *            @hibernate.property
     *             column="CURSTATE"
     *             length="28"
     *         
     */

    public String getCurstate() {
        return this.curstate;
    }
    
    public void setCurstate(String curstate) {
        this.curstate = curstate;
    }
    /**       
     *      *            @hibernate.property
     *             column="PRIORITY"
     *             length="1"
     *         
     */

    public String getPriority() {
        return this.priority;
    }
    
    public void setPriority(String priority) {
        this.priority = priority;
    }
    /**       
     *      *            @hibernate.property
     *             column="REVIVENUM"
     *             length="10"
     *         
     */

    public Long getRevivenum() {
        return this.revivenum;
    }
    
    public void setRevivenum(Long revivenum) {
        this.revivenum = revivenum;
    }
    /**       
     *      *            @hibernate.property
     *             column="INSTCODE"
     *             length="100"
     *         
     */

    public String getInstcode() {
        return this.instcode;
    }
    
    public void setInstcode(String instcode) {
        this.instcode = instcode;
    }
    /**       
     *      *            @hibernate.property
     *             column="CREATOR"
     *             length="20"
     *         
     */

    public String getCreator() {
        return this.creator;
    }
    
    public void setCreator(String creator) {
        this.creator = creator;
    }
    /**       
     *      *            @hibernate.property
     *             column="ASSIGNMODE"
     *             length="1"
     *         
     */

    public String getAssignmode() {
        return this.assignmode;
    }
    
    public void setAssignmode(String assignmode) {
        this.assignmode = assignmode;
    }
    /**       
     *      *            @hibernate.property
     *             column="PARENTACTINSTID"
     *             length="19"
     *         
     */

    public Integer getParentactinstid() {
        return this.parentactinstid;
    }
    
    public void setParentactinstid(Integer parentactinstid) {
        this.parentactinstid = parentactinstid;
    }
    /**       
     *      *            @hibernate.property
     *             column="VERSION"
     *             length="10"
     *         
     */

    public Long getVersion() {
        return this.version;
    }
    
    public void setVersion(Long version) {
        this.version = version;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROCDEFID"
     *             length="60"
     *         
     */

    public String getProcdefid() {
        return this.procdefid;
    }
    
    public void setProcdefid(String procdefid) {
        this.procdefid = procdefid;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("versioncontrol").append("='").append(getVersioncontrol()).append("' ");			
      buffer.append("name").append("='").append(getName()).append("' ");			
      buffer.append("procmodelid").append("='").append(getProcmodelid()).append("' ");			
      buffer.append("description").append("='").append(getDescription()).append("' ");			
      buffer.append("createtime").append("='").append(getCreatetime()).append("' ");			
      buffer.append("starttime").append("='").append(getStarttime()).append("' ");			
      buffer.append("startperformer").append("='").append(getStartperformer()).append("' ");			
      buffer.append("laststatechangetime").append("='").append(getLaststatechangetime()).append("' ");			
      buffer.append("previousstate").append("='").append(getPreviousstate()).append("' ");			
      buffer.append("curstate").append("='").append(getCurstate()).append("' ");			
      buffer.append("priority").append("='").append(getPriority()).append("' ");			
      buffer.append("revivenum").append("='").append(getRevivenum()).append("' ");			
      buffer.append("instcode").append("='").append(getInstcode()).append("' ");			
      buffer.append("creator").append("='").append(getCreator()).append("' ");			
      buffer.append("assignmode").append("='").append(getAssignmode()).append("' ");			
      buffer.append("parentactinstid").append("='").append(getParentactinstid()).append("' ");			
      buffer.append("version").append("='").append(getVersion()).append("' ");			
      buffer.append("procdefid").append("='").append(getProcdefid()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof WrProcess) ) return false;
		 WrProcess castOther = ( WrProcess ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVersioncontrol()==castOther.getVersioncontrol()) || ( this.getVersioncontrol()!=null && castOther.getVersioncontrol()!=null && this.getVersioncontrol().equals(castOther.getVersioncontrol()) ) )
 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) )
 && ( (this.getProcmodelid()==castOther.getProcmodelid()) || ( this.getProcmodelid()!=null && castOther.getProcmodelid()!=null && this.getProcmodelid().equals(castOther.getProcmodelid()) ) )
 && ( (this.getDescription()==castOther.getDescription()) || ( this.getDescription()!=null && castOther.getDescription()!=null && this.getDescription().equals(castOther.getDescription()) ) )
 && ( (this.getCreatetime()==castOther.getCreatetime()) || ( this.getCreatetime()!=null && castOther.getCreatetime()!=null && this.getCreatetime().equals(castOther.getCreatetime()) ) )
 && ( (this.getStarttime()==castOther.getStarttime()) || ( this.getStarttime()!=null && castOther.getStarttime()!=null && this.getStarttime().equals(castOther.getStarttime()) ) )
 && ( (this.getStartperformer()==castOther.getStartperformer()) || ( this.getStartperformer()!=null && castOther.getStartperformer()!=null && this.getStartperformer().equals(castOther.getStartperformer()) ) )
 && ( (this.getLaststatechangetime()==castOther.getLaststatechangetime()) || ( this.getLaststatechangetime()!=null && castOther.getLaststatechangetime()!=null && this.getLaststatechangetime().equals(castOther.getLaststatechangetime()) ) )
 && ( (this.getPreviousstate()==castOther.getPreviousstate()) || ( this.getPreviousstate()!=null && castOther.getPreviousstate()!=null && this.getPreviousstate().equals(castOther.getPreviousstate()) ) )
 && ( (this.getCurstate()==castOther.getCurstate()) || ( this.getCurstate()!=null && castOther.getCurstate()!=null && this.getCurstate().equals(castOther.getCurstate()) ) )
 && ( (this.getPriority()==castOther.getPriority()) || ( this.getPriority()!=null && castOther.getPriority()!=null && this.getPriority().equals(castOther.getPriority()) ) )
 && ( (this.getRevivenum()==castOther.getRevivenum()) || ( this.getRevivenum()!=null && castOther.getRevivenum()!=null && this.getRevivenum().equals(castOther.getRevivenum()) ) )
 && ( (this.getInstcode()==castOther.getInstcode()) || ( this.getInstcode()!=null && castOther.getInstcode()!=null && this.getInstcode().equals(castOther.getInstcode()) ) )
 && ( (this.getCreator()==castOther.getCreator()) || ( this.getCreator()!=null && castOther.getCreator()!=null && this.getCreator().equals(castOther.getCreator()) ) )
 && ( (this.getAssignmode()==castOther.getAssignmode()) || ( this.getAssignmode()!=null && castOther.getAssignmode()!=null && this.getAssignmode().equals(castOther.getAssignmode()) ) )
 && ( (this.getParentactinstid()==castOther.getParentactinstid()) || ( this.getParentactinstid()!=null && castOther.getParentactinstid()!=null && this.getParentactinstid().equals(castOther.getParentactinstid()) ) )
 && ( (this.getVersion()==castOther.getVersion()) || ( this.getVersion()!=null && castOther.getVersion()!=null && this.getVersion().equals(castOther.getVersion()) ) )
 && ( (this.getProcdefid()==castOther.getProcdefid()) || ( this.getProcdefid()!=null && castOther.getProcdefid()!=null && this.getProcdefid().equals(castOther.getProcdefid()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVersioncontrol() == null ? 0 : this.getVersioncontrol().hashCode() );
         result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
         result = 37 * result + ( getProcmodelid() == null ? 0 : this.getProcmodelid().hashCode() );
         result = 37 * result + ( getDescription() == null ? 0 : this.getDescription().hashCode() );
         result = 37 * result + ( getCreatetime() == null ? 0 : this.getCreatetime().hashCode() );
         result = 37 * result + ( getStarttime() == null ? 0 : this.getStarttime().hashCode() );
         result = 37 * result + ( getStartperformer() == null ? 0 : this.getStartperformer().hashCode() );
         result = 37 * result + ( getLaststatechangetime() == null ? 0 : this.getLaststatechangetime().hashCode() );
         result = 37 * result + ( getPreviousstate() == null ? 0 : this.getPreviousstate().hashCode() );
         result = 37 * result + ( getCurstate() == null ? 0 : this.getCurstate().hashCode() );
         result = 37 * result + ( getPriority() == null ? 0 : this.getPriority().hashCode() );
         result = 37 * result + ( getRevivenum() == null ? 0 : this.getRevivenum().hashCode() );
         result = 37 * result + ( getInstcode() == null ? 0 : this.getInstcode().hashCode() );
         result = 37 * result + ( getCreator() == null ? 0 : this.getCreator().hashCode() );
         result = 37 * result + ( getAssignmode() == null ? 0 : this.getAssignmode().hashCode() );
         result = 37 * result + ( getParentactinstid() == null ? 0 : this.getParentactinstid().hashCode() );
         result = 37 * result + ( getVersion() == null ? 0 : this.getVersion().hashCode() );
         result = 37 * result + ( getProcdefid() == null ? 0 : this.getProcdefid().hashCode() );
         return result;
   }   





}
